package org.example.springbootrabbitmq.normal;

import com.rabbitmq.client.Channel;
import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.core.Message;
import org.springframework.amqp.rabbit.annotation.RabbitListener;

@Slf4j
//@Component
public class Consume {
    @RabbitListener(queues = {"QA"})
    public void consume1(Message message, Channel channel) {
        String msg = new String(message.getBody());
        log.info("queue1:{}", msg);
    }
}
